Skip to content

Comments

feat: Better support for subaccounts#112

Merged
ggreif merged 3 commits intodfinity:masterfrom
ninegua:master
May 3, 2025
Merged

feat: Better support for subaccounts#112
ggreif merged 3 commits intodfinity:masterfrom
ninegua:master

Conversation

@ninegua
Copy link
Member

@ninegua ninegua commented Apr 19, 2025

Add the following built-in function support:

  • account(principal, blob) converts principal and subaccount (blob) to account id (blob), used by the ICP ledger.
  • subaccount(principal) converts principal to subaccount (blob), which is what the CMC canister expects.

@ninegua ninegua requested a review from a team as a code owner April 19, 2025 03:27
Copy link
Contributor

@ggreif ggreif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Approving as low-risk.

@ninegua
Copy link
Member Author

ninegua commented May 3, 2025

LGTM. Approving as low-risk.

Thanks for the review! Can you also help merge this? I don't see merge button at all from my side.

@ggreif ggreif merged commit e3cbed2 into dfinity:master May 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants